package com.ctsi.security;

import com.ctsi.security.domain.DataObject;
import com.ctsi.security.domain.Permission;
import com.ctsi.security.domain.RolePermission;
import com.ctsi.security.domain.SRole;

import java.util.List;
import java.util.Map;


public interface I_SecurityService {
	public void addRole(SRole role);

	public void savePermission(Permission permission);

	public void saveRolePermission(RolePermission rolePermission);

	public SRole findSRoleById(String roleId);

	public List<DataObject> findDataObject(String[] field, Object[] args);

	public boolean isForbidden(String doTypeId);

	public Map<String, DataObject> getDataObject(String userLoginId, String doTypeId, String action);

	public Permission findByPermission(String permissionId);
}
